-- GENERATED SPELL FOR [Coilfang Siren] --


function spell0_17801(pUnit, Event) --@Arcane Flare,n/a--
pUnit:FullCastSpellOnTarget(35106,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17801', 12000, 1)
end

function spell1_17801(pUnit, Event) --@Arcane Flare,n/a--
pUnit:FullCastSpellOnTarget(37856,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17801', 12000, 1)
end

function spell2_17801(pUnit, Event) --@Fear,n/a--
pUnit:FullCastSpellOnTarget(38660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17801', 5000, 1)
end

function spell3_17801(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(15234,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17801', 3000, 1)
end

function spell4_17801(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(37664,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17801', 3000, 1)
end

function Sorts_17801(pUnit, Event)
local choix_sorts_17801 = math.random(0, 4)
if choix_sorts_17801 == 0 then
pUnit:RegisterEvent('spell0_17801', 1, 1)
end
if choix_sorts_17801 == 1 then
pUnit:RegisterEvent('spell1_17801', 1, 1)
end
if choix_sorts_17801 == 2 then
pUnit:RegisterEvent('spell2_17801', 1, 1)
end
if choix_sorts_17801 == 3 then
pUnit:RegisterEvent('spell3_17801', 1, 1)
end
if choix_sorts_17801 == 4 then
pUnit:RegisterEvent('spell4_17801', 1, 1)
end
end

function mob17801_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17801', math.random(1500, 3000), 1)
end

function mob17801_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17801_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17801_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17801, 1, 'mob17801_Action')
RegisterUnitEvent(17801, 2, 'mob17801_Leave')
RegisterUnitEvent(17801, 3, 'mob17801_Kill')
RegisterUnitEvent(17801, 4, 'mob17801_Die')
